<?php

class MY_Widget_Links extends WP_Widget_Links {

    function widget ($args, $instance) {
	if (!is_front_page () && !is_home ()) {
	    parent::widget ($args, $instance);
	}
    }

}

function mywidgetlinks_load () {
    unregister_widget ('WP_Widget_Links');
    register_widget ('MY_Widget_Links');
}
add_action ('widgets_init', 'mywidgetlinks_load');

?>
